<ui:composition
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:c="http://java.sun.com/jsp/jstl/core">

        <p:notificationBar position="top" effect="slide" widgetVar="bar" styleClass="top"
                           rendered="#{usuarioSessionBean.estaRegistrado}" style="z-index: 99;" >

            <div id="header-notificationbar" >
                <table border="0">
                    <tr>
                        <td colspan="2" height="17">
                            
                        </td>
                    </tr>
                    <tr>                        
                        <td width="680" align="center">
                            
                            <c:choose>
                                <c:when test="${usuarioSessionBean.usuario.tipo =='A'}">
                                    <ui:include src="../seguridad/menu_administrador.xhtml"  />
                                </c:when>
                                <c:otherwise>
                                    <ui:include src="../seguridad/menu_usuario.xhtml"  />
                                </c:otherwise>
                            </c:choose>


                            
                        </td>
                        <td width="300" align="right">
                            <ui:include src="../seguridad/usuarioInformacion.xhtml" />
                        </td>
                    </tr>
                    <tr>                        
                        <td align="center" colspan="2">                            
                            <p:commandLink id="lnkOcultar" styleClass="lnkOcultar" onclick="bar.hide()" >
                                   <p:graphicImage value="../resources/imagenes/arrow_up.png" height="20" width="30" />
                            </p:commandLink>                            
                        </td>                        
                    </tr>
                </table>
            </div>
            
        </p:notificationBar>

    <p:tooltip for="lnkOcultar" value="Ocultar menú general"  showEffect="fade" hideEffect="fade"  />

</ui:composition>
